package com.sun.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/21 13:39
 * @FileName: InstroreDetail
 * @Description: ""
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InstoreDetail extends Model<InstoreDetail> {
    /**
     * 入库单目编号
     */
    @TableId()
    private Long id;
    /**
     * 药品编号
     */
    private Long drugId;
    /**
     * 药品名称
     */
    private String drugName;
    /**
     * 药品代码
     */
    private String drugCode;
    /**
     * 进价
     */
    private String price;
    /**
     * 入库数量
     */
    private Integer num;
    /**
     * 有效期
     */
    private String validityPeriod;
    /**
     * 生产日期
     */
    private LocalDateTime productionDate;

    private Long supplierId;
    private String supplierName;
    private String singleunit;
    private String standard;
    /**
     * 入库单编号
     */
    private Long receiptId;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
